package com.powervision.mvvmdemo.ui.repository

import com.powervision.http.base.BaseRepository
import com.powervision.http.entity.ApiResponse
import com.powervision.mvvmdemo.ui.http.RetrofitClient
import com.powervision.mvvmdemo.ui.model.ArticleListModel

/**
 * @auth: njb
 * @date: 2021/12/22 15:29
 * @desc: 描述
 */
class WxArticleListRepository :BaseRepository(){
    private val mWxArticleListService by lazy {
        RetrofitClient.service
    }

    suspend fun wxArticleList(page:Int,id:String):ApiResponse<ArticleListModel>{
        return executeHttp {
            mWxArticleListService.wxArticleList(page,id)
        }
    }
}